//
//  ViewController.m
//  06-轮播图
//
//  Created by 402030900@qq.com on 16/7/21.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "ViewController.h"
#import "LYRCircleImages.h"
#define BOUNDS [UIScreen mainScreen].bounds
#define WIDTH BOUNDS.size.width
#define HEIGHT BOUNDS.size.height
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSArray * array = @[@"0.jpg",@"1.jpg",@"2.jpg",@"3.jpg",@"4.jpg"];
    
    LYRCircleImages * cycle = [[LYRCircleImages alloc]initWithFrame:CGRectMake(0, 0, WIDTH, 200)];
    cycle .cycleScrollView.showsHorizontalScrollIndicator = YES; //属性重新定义 readOnly 有getter方法
    [cycle setImagesWithArray:array];
    [self.view addSubview:cycle];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
